package jd.se.register;

import jd.se.login.LoginDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface registerDao {
    @Select("select count(u_id) from user where u_id = #{u_id} ")
    int findUserCountById(registerDto dto);

    @Insert("insert into user(u_id,u_name,password,email,phone,credit)values(#{u_id},#{u_name},#{password},#{email},#{phone},100)")
    void add(registerDto dto);
}
